<template>
<div>
  <el-form label-width="25%" ref="ruleForm" :rules="rules" :model="loginInfo">
    <el-form-item label="手机号：" prop="phone">
      <el-input v-model="loginInfo.phone" placeholder="请输入账号" maxlength="11" auto-complete="off"></el-input>
    </el-form-item>
    <el-form-item label="密码：" prop="password">
      <el-input type="password" v-model="loginInfo.password" maxlength="20" placeholder="请输入密码"></el-input>
    </el-form-item>
    <el-form-item label="性别：">
      <el-select v-model="loginInfo.sex" placeholder="请选择">
        <el-option v-for="item in options" :key="item" :value="item"></el-option>
        <!-- 这里的key官方推荐在v-for时使用，不然会警告，但不影响使用 -->
      </el-select>
    </el-form-item>
    <el-button @click="resetForm('ruleForm')">重置</el-button>
    <el-button @click="create('ruleForm')">创建</el-button>
  </el-form>
  <p class="detail_">
    手机号：{{loginInfo.phone}}
  </p>
  <p class="detail_">
    密码：{{loginInfo.password}}
  </p>
  <p class="detail_">
    性别：{{loginInfo.sex}}
  </p>
</div>
</template>
<script src="./Login.js"></script>

<style lang="less">
@import "./Login.less";
</style>
